﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<KabiManagementWeb.Models.Employee>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Sửa thông tin nhân viên</h2>

       <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Thông tin</legend>
            
           
            <div class="editor-label">
               Họ và tên
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FullName) %>
                <%= Html.ValidationMessageFor(model => model.FullName) %>
            </div>
            <div class="editor-label">
               Số tài khoản ngân hàng
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreditCard) %>
                <%= Html.ValidationMessageFor(model => model.CreditCard)%>
            </div>
            <div class="editor-label">
               Số CMND
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ID) %>
                <%= Html.ValidationMessageFor(model => model.ID) %>
            </div>
            
            <div class="editor-label">
               Ngày Sinh
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.BirthDay) %>
                <%= Html.ValidationMessageFor(model => model.BirthDay) %>
            </div>
            
            <div class="editor-label">
               Giới Tính
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Gender) %>
                <%= Html.ValidationMessageFor(model => model.Gender) %>
            </div>
            
            <div class="editor-label">
               Địa chỉ
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Address) %>
                <%= Html.ValidationMessageFor(model => model.Address) %>
            </div>
            
            <div class="editor-label">
               Điện Thoại
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Phone) %>
                <%= Html.ValidationMessageFor(model => model.Phone) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Email) %>
                <%= Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
                Lương cơ bản
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Salary) %>
                <%= Html.ValidationMessageFor(model => model.Salary) %>
            </div>
            
            <div class="editor-label">
               Nhiệm vụ
            </div>
            <div class="editor-field">
                <%= Html.DropDownListFor(model => model.PositionID, (SelectList)ViewData["Position"])%>
                <%= Html.ValidationMessageFor(model => model.PositionID) %>
            </div>
            
            <div class="editor-label">
               Giờ làm việc
            </div>
            <div class="editor-field">
                <%= Html.DropDownListFor(model => model.TimeSlotID, (SelectList)ViewData["TimeSlot"])%>
                <%= Html.ValidationMessageFor(model => model.TimeSlotID) %>
            </div>
            
            <div class="editor-label">
              Kinh nghiệm(Năm)
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Experience) %>
                <%= Html.ValidationMessageFor(model => model.Experience) %>
            </div>
        
            
            <p>
                <input type="submit" value="Lưu lại" />
            </p>
        </fieldset>
        

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptZone" runat="server">
</asp:Content>

